/*
required global (window) level parameters
<list array holder> - ar_list_holder: array of list arrays on the page, where each list is an key, value pair array:
example:  ar_list_holder = {columnname1: {0:{key: 100, value: "Seattle"}, 1: {key: 101, value:"Portland"}, ... }, colunmname2: { }..}
This allows arbitrary ordered list support (for drop-downs for wherever used)

<index array holder> - ar_index_holder: array of index arrays.  These contain the same information (duplicate) of the list arrays, 
but are arranged in a simple key: value for lookup without looping through the list arrays.
example:  ar_index_holder = {columnname1: {100: "Seattle", 200: "Portland", ...}, columname2 ...}

<lookup url holder> - ar_list_urls:  array of either URL for remote retrieval, or false if array is provided in code (do not retireve)
URLs are static, and fetched through GET.  any parameters must alos be static and hardwired.
example: ar_list_urls = {columnname1: "http://my.domain.com/this/that/getcities.php?language=en", columnname2: false, ...}
*/

function ManageLists(ar_list_urls,ar_list_holder,ar_index_holder,cb_onfinish){

	for (var columnname in ar_list_holder) {
		if( 'object' != typeof(ar_list_holder['columnname'])) {
			if(typeof(ar_list_urls['columnname']) == 'string'){
				$.get(ar_list_urls['columnname'],{},ManageListsCb);
			}
		}
	}

}


